package Edchl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.RepeatMessageComponent;
import com.orion.symphonia3.BadParameterException;

public class EDC_HL7RepGrpPID_NTE extends RepeatMessageComponent{
	
	//Constructor
	public EDC_HL7RepGrpPID_NTE(MessageElement elem) {
		super(elem);
	}

	//Methods
	public EDC_HL7GrpPID_NTE append() {
		return new EDC_HL7GrpPID_NTE(elem.appendElement());
	}

	public EDC_HL7GrpPID_NTE item (int index) throws BadParameterException {
		if (index >= getElementCount())
			throw new BadParameterException("Index is out of bounds");
		return new EDC_HL7GrpPID_NTE(elem.getElementAt(index));
	}

}
